﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Entity.Category>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Edit
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Edit</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Fields</legend>
        <%: Html.HiddenFor(model => model.ID) %>
        <%=Html.LabelFor(i=>i.Name)%>：<%=Html.TextBoxFor(i => i.Name)%><%=Html.ValidationMessageFor(i => i.Name)%><br />
        <%=Html.LabelFor(i=>i.ParentID)%>：<%=Html.TextBoxFor(i => i.ParentID)%><%=Html.ValidationMessageFor(i => i.ParentID)%><br />
        <%=Html.LabelFor(i=>i.SortNumber)%>：<%=Html.TextBoxFor(i => i.SortNumber)%><%=Html.ValidationMessageFor(i => i.SortNumber)%><br />
        <input type="submit" value="提交" />
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
